home *** CD-ROM | disk | FTP | other *** search
/ Aminet 43 / Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso / Aminet / comm / tcp / Amster-main.lha / Amster_Install / Rexx / AMPlifier.rexx < prev    next >
OS/2 REXX Batch file  |  2000-10-18  |  826b  |  33 lines

  1. /*
  2. ** $VER: AMPlifier 1.0 (18.10.2000)
  3. ** © 2000 by Jacob Laursen <laursen@myself.com>
  4. **
  5. ** Set up your player path below and some of these events in Amster:
  6. **
  7. ** Download finished
  8. ** Double-clicking library file
  9. ** Double-clicking download file
  10. ** MP3 player
  11. **
  12. ** To play the file immediately:
  13. **   Command:  RexxC:RX Apps:Comm/Amster/Rexx/AMPlifier.rexx PLAY "%f"
  14. **
  15. ** To add the file to the playlist:
  16. **   Command:  RexxC:RX Apps:Comm/Amster/Rexx/AMPlifier.rexx ADD "%f"
  17. **
  18. */
  19.  
  20. PlayerPath = 'Apps:Sound/Players/AMPlifier/AMPlifier'
  21.  
  22. /* No user-serviceable parts below */
  23.  
  24. parse arg mode' 'filename
  25. options results
  26.  
  27. if ~show('P','AMPLIFIER.1') then address command PlayerPath' 'filename
  28. else do
  29.   address 'AMPLIFIER.1'
  30.   if upper(mode) = 'PLAY' then 'PLAY 'filename
  31.   else if upper(mode) = 'ADD' then 'ADD 'filename
  32. end
  33.